<template>
  <div>
    <div class="background">
      <div class="bgc_color"></div>
    </div>

    <div class="my">
      <router-link to="MyMasg">
        <div class="change iconfont icon-jiaosexiugai"></div>
      </router-link>

      <div class="name">
        <div class="portrait">
          <img src="" alt="" />
        </div>
        <div class="name_masg">
          <div class="pasg">
            热心市民李先生
            <div class="leve">
              <div class="start"></div>
              <div class="leave">16</div>
            </div>
          </div>

          <div class="name_id">ID: 1069643013</div>
        </div>
        <div class="coupons">
          <ul>
            <li>
              <p>红包</p>
              <p>218</p>
            </li>
            <li>
              <p>优惠卷</p>
              <p>12张</p>
            </li>
            <li>
              <p>鲜豆</p>
              <p>88</p>
            </li>
            <li>
              <p>白条</p>
              <p>1000</p>
            </li>
          </ul>
        </div>
      </div>

      <Optios />

      <Docker :changeClass="'my'" />
    </div>
  </div>
</template>




<script setup>

import Docker from '../../components/Docker.vue'
import { ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { post, poster, addToCart } from '../../utils/request.js'
import Optios from './Options.vue'

const route = useRoute()
const router = useRouter()




</script>

<style lang="scss" scoped>
.my {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.change {
  position: absolute;
  top: 0.57rem;
  right: 0.27rem;
  width: 0.24rem;
  height: 0.25rem;
  font-size: 0.25rem;
}

.background {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 2.5rem;
  overflow: hidden;

  .bgc_color {
    width: 0.5rem;
    height: 0.5rem;
    transform: scale(12) translate(26%, -14%);
    border-radius: 50%;
    background-image: linear-gradient(239deg, #3a6ff3 0%, #50c7fb 100%);
  }
}

.name {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: space-between;
  margin-top: 1.08rem;
  width: 3.39rem;
  height: 2.03rem;
  background-color: #fff;

  .portrait {
    position: absolute;
    top: -0.47rem;
    left: 35%;
    width: 0.94rem;
    height: 0.94rem;
    background-color: pink;
    border-radius: 50%;
    z-index: 1;
  }

  .name_masg {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 0.55rem;
    margin: 0.59rem 0 0.25rem;
    border-bottom: 0.02rem solid #f1f1f1;

    .pasg {
      display: flex;
      font-size: 0.24rem;
      color: #262628;
    }

    .leve {
      position: absolute;
      top: 0.06rem;
      right: 0.4rem;
      display: flex;
      justify-content: space-around;
      align-content: space-around;
      width: 0.35rem;
      height: 0.15rem;
      background-image: linear-gradient(180deg, #bee700 0%, #8aca00 100%);
      border-radius: 100px;
      border-radius: 7.5px;

      .leave {
        font-size: 0.1rem;
        color: #fff;
        line-height: 0.15rem;
      }

      .start {
        margin-top: 0.015rem;
        border-radius: 50%;
        width: 0.11rem;
        height: 0.11rem;

        background: rgba(0, 0, 0, 0.2);
      }
    }

    .name_id {
      margin-top: 0.05rem;
      font-size: 0.14rem;
      color: #c1c0c9;
    }
  }

  .coupons {
    margin: 0.15rem 0 0;
    width: 100%;
    height: 0.76rem;
    ul {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: space-around;
      align-content: space-around;
      li {
        width: 0.45rem;

        p:first-child {
          font-size: 0.12rem;
          color: #c1c0c9;
          text-align: center;
        }

        p:last-child {
          margin-top: 0.06rem;
          text-align: center;
          font-size: 0.2rem;
          color: #262628;
        }
      }
    }
  }
}

.chouse {
  width: 3.39rem;
  display: flex;
  justify-content: space-between;
  align-content: space-between;
  margin-top: 0.16rem;

  ul {
    width: 100%;
    height: 100%;

    li {
      width: 2.76rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      //   margin: 0 0.16rem;
      width: 100%;
      height: 0.486rem;

      .page {
        margin-left: 0.16rem;
        display: flex;
        justify-content: space-around;
        align-items: center;

        p:first-child {
          width: 0.22rem;
          height: 0.22rem;
          //   background-color: skyblue;
          line-height: 0.22rem;
          font-size: 0.25rem;
        }

        p:last-child {
          margin-left: 0.16rem;
          line-height: 0.56rem;
          font-size: 0.14rem;
        }
      }

      span {
        margin-right: 0.16rem;
        width: 0.1rem;
        height: 0.2rem;
        font-size: 0.21rem;
      }
    }
  }
  .icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
  }
}
</style>